{# twig template #}
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Last Articles</h3>
    </div>
    <div class="panel-body">
    </div>
    <ul class="list-group">
        {% for key,item in lastArticles %}
            <li class="list-group-item">{{ key+1 }}. <a href="{{ item.route }}" target="_blank">{{ item.title }}</a></li>
        {% endfor %}
    </ul>
</div>

<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Categories</h3>
    </div>
    <div class="panel-body">
        {% for item in categories %}
            <a href="/blog/{{ item.name }}"><span class="label label-success">{{ item.name }}</span></a>
        {% endfor %}
    </div>
</div>

<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Friends</h3>
    </div>
    <div class="panel-body">
        <a href="#">test</a>
    </div>
</div>
